<include file="Public:header"/>

<div class="table-tit">个人信息<a href="{:U('Dash/agentedit','sga='.$info['sag_id'])}" class="pull-right btn btn-info btn-xs">编辑</a></div>
<table class="table table-bgfont">
    <tr>
        <td width="10%">姓名</td>
        <td width="40%">{$info.sag_name}</td>
        <td width="10%">电话</td>
        <td width="40%">{$info.sag_phone}</td>
    </tr>
    <tr>
        <td>类型</td>
        <td>{$info.sag_type|getDisName=$info['sag_type'],###}</td>
        <td>收款人</td>
        <td>{$info.sag_payee}</td>
    </tr>
    <tr>
        <td>收单银行</td>
        <td>{$info.sag_bank}</td>
        <td>账号</td>
        <td>{$info.sag_baccount}</td>
    </tr>
</table>
<div class="table-tit">管理人员列表</div>
<table class="table table-bgfont">
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>账号</th>
        <th>开户银行</th>
        <th>银行账号</th>
        <th>账户类型</th>
        <th>状态</th>
        <th>加入时间</th>
        <th>管理</th>
    </tr>
    
    <volist name="data.data" id="v">
        <tr>
            <td>{$v.ssa_id}</td>
            <td>{$v.ssa_name}</td>
            <td>{$v.ssa_phone}</td>
            <td>{$v.ssa_banktrans}</td>
            <td>{$v.ssa_banknumber}</td>
            <td>{$v.ssa_type|getDisName=$v['ssa_type'],###}</td>
            <td>
                <if condition="$v.ssa_status eq 1">
                <button type="button" class="btn btn-success btn-xs">使用中</button>
                <else/>
                <button type="button" class="btn btn-danger btn-xs">暂停中</button>
                </if>
            </td>
            <td>{$v.ssa_time|date='Y-m-d H:i:s',###}</td>
            <td>
                <a href="{:U('Dash/promanover','soa='.$v['ssa_id'])}" target="_blank">
                <button type="button" class="btn btn-info btn-xs">浏览</button>
                </a>
                <a href="{:U('Dash/promanedit','soa='.$v['ssa_id'])}" target="_blank">
                <button type="button" class="btn btn-xs btn-primary">编辑</button>
                </a>
            </td>
        </tr>
    </volist>
    <tr>
        <td colspan="10">{$data.page}</td>
    </tr>
</table>

<div class="table-tit">结算记录</div>
<table class="table table-bgfont">
    <tr>
        <th>编号</th>
        <th>金额</th>
        <th>收单行</th>
        <th>收款人</th>
        <th>账号</th>
        <th>申请时间</th>
        <th>支付时间</th>
        <th>状态</th>
    </tr>

    <volist name="paid.data" id="v">
        <tr>
            <td>{$v.set_sn}</td>
            <td>{$v.set_cash}</td>
            <td>{$v.set_bank}</td>
            <td>{$v.set_asname}</td>
            <td>{$v.set_bankcard}</td>
            <td>{$v.set_time|date='Y-m-d H:i:s',###}</td>
            <td>{$v.set_paytime|date='Y-m-d H:i:s',###}</td>
            <td>
                <switch name="v.set_status">
                    <case value="100"><button type="button" class="btn btn-warning btn-xs">初审中</button></case>
                    <case value="102"><button type="button" class="btn btn-danger btn-xs">初审失败</button></case>
                    <case value="200"><button type="button" class="btn btn-warning btn-xs">复核中</button></case>
                    <case value="202"><button type="button" class="btn btn-danger btn-xs">复核失败</button></case>
                    <case value="300"><button type="button" class="btn btn-warning btn-xs">未付款</button></case>
                    <case value="301"><button type="button" class="btn btn-info btn-xs">银行退回</button></case>
                    <case value="302"><button type="button" class="btn btn-info btn-xs">网络错误</button></case>
                    <case value="400"><button type="button" class="btn btn-success btn-xs">已付款</button></case>
                </switch>
            </td>
        </tr>
    </volist>
    <tr>
        <td colspan="8">{$paid.page}</td>
    </tr>
</table>

<include file="Public:footer"/>